- 
                Notifications
    You must be signed in to change notification settings 
- Fork 147
fix: scripts: mp1 series eth pin config #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
6118bdb    to
    cb51abc      
    Compare
  
    Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
| hello @arifbalik Thanks for your contribution! Please find below few comments: 
 | 
| I was trying to bring up ethernet on stm32mp1 and realized the pin data is quite different than what was specified in the default yml file, I'll see if I can put it inside the default one but it seems unlikely. Also last time I updated the pinctrl files @erwango suggested that I should open another PR for the  | 
| 
 Maybe I wasn't clear enough, I wanted to mean splitting into disctinct commits, not PRs. | 
| oh my bad | 
| 
 perhaps you could just add  | 
| 
 The problem is that some of the definitions in the pin data matches some regex expressions inside  For example some definitions will match the following regex and this is from  - name: ETH (Extended)
  match: "^ETH\\d+_(?:MDC|MDIO|PHY_INTN|PPS_OUT|CLK|TX_ER)$"
  slew-rate: very-high-speedBut none would match against this; - name: ETH
  match: "^ETH+_(?:COL$|CRS|CRS_DV|MDC|MDIO|PPS_OUT|REF_CLK|RX_CLK|RX_DV|RX_ER||RXD[0-3]|TX_CLK|TX_EN|TXD[0-3])$"
  slew-rate: very-high-speedMaybe I could remove the expressions inside  | 
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
cb51abc    to
    bf87279      
    Compare
  
    | 
 Is Completing the  If we are unable to enhance the stm32-pinctrl-config.yaml, an alternative could be to include the changes in stm32mp1-pinctrl-config.yaml to only override the ETH section. | 
| Any update planned? | 
| 
 @arnopo I've returned to your email but i guess there was a problem, I was also working with ethernet and had a very similar branch to yours. But it was not ready for upstream. I havent been able to work on this for a while. But i can get back to it. Let me see if i can change the pin config like you suggested. I can get back to you by the end of the week. | 
| 
 I did not received answer from you, but I saw that you push some related code on your GitHub. Testing it was not functional. 
 | 
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
bf87279    to
    06fb0a2      
    Compare
  
    | @arnopo I did managed to put the regex inside the original yaml file. However there is a logical seperation now, because some of the pins match the regex  | 
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
06fb0a2    to
    b719038      
    Compare
  
    Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
b719038    to
    516a3f8      
    Compare
  
    | @arnopo Also it seems like mp15x series have different namings than mp13x series, so i left it out when regenerating the pins | 
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
516a3f8    to
    b3af127      
    Compare
  
    | 
 That would be great i you could do it | 
| 
 LGTM but need @erwango feedback | 
| 
 I will add your sign-off in commit that impact the DTS and the eth_stm32_hal drivers. in my update of the PR | 
| 
 That is not ideal. Script is made to be used by anyone to add new configuration, there should not be leftover files to deal with. | 
| @arifbalik Following discussion with @arnopo It is ok to merge mp15 eth pin configurations. The only change would be to change from  | 
STM32MP1 series has different Ethernet namings than what is specified in stm32-pinctrl-config.yaml, so I did put another config file with one regex; `ETH[12]_(CLK|COL|CRS|CRS_DV|GTX_CLK|MDC|MDIO|PHY_INTN|PPS_OUT|REF_CLK|RX_CLK|RX_CTL|RX_DV|RX_ER|RXD|TX_CLK|TX_CTL|TX_EN|TX_ER|TXD)` Signed-off-by: Arif Balik <[email protected]>
Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
b3af127    to
    ad785c7      
    Compare
  
    Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
ad785c7    to
    c5aadd1      
    Compare
  
    Updated the pins based on zephyrproject-rtos#287 Signed-off-by: Arif Balik <[email protected]>
c5aadd1    to
    9dc2809      
    Compare
  
    
STM32MP1 series has different Ethernet namings than what is specified in stm32-pinctrl-config.yaml, so I did put another config file with one regex;
ETH[12]_(CLK|COL|CRS|CRS_DV|GTX_CLK|MDC|MDIO|PHY_INTN|PPS_OUT|REF_CLK|RX_CLK|RX_CTL|RX_DV|RX_ER|RXD|TX_CLK|TX_CTL|TX_EN|TX_ER|TXD)